package vashion.azeroth.task.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import vashion.azeroth.common.push.util.JPushClientUtil;

public class PushJob implements Runnable {
	
	private final static Logger log = LoggerFactory.getLogger(PushJob.class);
	
	private String registrationId;
	private String alertMsg;
	
	public PushJob(String registrationId, String alertMsg) {
		this.registrationId = registrationId;
		this.alertMsg = alertMsg;
	}
	
	@Override
	public void run() {
		log.info("registrationId=" + registrationId + ", alertMsg=" + alertMsg);
		JPushClientUtil.push(registrationId, alertMsg);
	}

}
